<template>
  <div class="mainCon">
    <div class="mainConHeader">
      <div class="mainConHeaderContent"></div>
      <el-tabs
        v-model="activeName"
        type="card"
        @tab-click="handleClick"
        class="commonTab"
      >
        <el-tab-pane
          :label="item.label"
          :name="item.id"
          v-for="item in list"
          :key="item.id"
        ></el-tab-pane>
      </el-tabs>
      <span class="tip"> 项目包保负责人，一包到底，按责任监管 </span>
      <div>
        <proAssigned :activeName="activeName"></proAssigned>
      </div>
    </div>
  </div>
</template>

<script>
import proAssigned from './proAssigned'
// import proUnassigned from "./proUnassigned";
export default {
  name: 'guaranteedDistribution',
  components: {
    proAssigned,
    // proUnassigned
  },
  data() {
    return {
      activeName: '0',
      list: [
        {
          id: '0',
          label: '未分派',
        },
        {
          id: '1',
          label: '已分派',
        },
      ],
    }
  },
  created() {},
  methods: {
    //tabs栏切换
    handleClick(tab, event) {
      console.log(this.activeName)
    },
  },
}
</script>

<style scoped lang="less">
.mainCon {
  top: 132px;
  padding: 0;
  &Header {
    position: relative;
    &Content {
      position: absolute;
      left: 130px;
      z-index: 100;
      font-size: 12px;
      color: #666666;
    }
  }
  .topConStyle {
    margin: 0 !important;
  }
  .tip {
    position: absolute;
    right: 24px;
    top: 16px;
    font-size: 14px;
    color: #333;
  }
}
</style>
